<div id="news" class="admin-content">
    <div class="news_title">
        <h3>新闻列表</h3>
    </div>

    <table class="news_table am-table">
        <thead>
            <tr>
                <th class="news_table_title">新闻标题</th>
                <th class="news_table_name">作 者</th>
                <th class="news_table_time">发布时间</th>
                <th class="news_table_set">编 辑</th>
            </tr>
        </thead>
        <tbody>
        <tr dir-paginate="news in news_list | filter:q | itemsPerPage: 5">
            <td class="ng-binding"><a href="">{{news.title}}</a></td>
            <td class="ng-binding">{{news.writer}}</td>
            <td class="ng-binding">{{news.dateandtime|date:'yyyy-MM-dd HH:mm'}}</td>
            <td class="ng-binding">
                <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                        <button class="am-btn am-btn-default am-btn-xs am-text-secondary"
                                ui-sref="news.detail({eId:news.articleid})">
                            <span class="am-icon-pencil-square-o"></span> 编辑
                        </button>
                        <!--<button class="am-btn am-btn-default am-btn-xs am-hide-sm-only"><span class="am-icon-copy"></span> 复制</button>-->
                        <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"
                                confirmed-click="remove(news.articleid)"
                                ng-confirm-click="确定删除这条新闻'{{news.title}}'">
                            <span class="am-icon-trash-o"></span> 删除
                        </button>
                    </div>
                </div>
            </td>
        </tr>
        </tbody>
    </table>

    <div>
        <div class="text-center">
            <dir-pagination-controls boundary-links="true" on-page-change="pageChangeHandler(newPageNumber)"
                                     template-url="tpls/pagination/dirPagination.tpl.html"></dir-pagination-controls>
        </div>
    </div>
</div>

